package DBLayer;
import java.sql.SQLException;
import ModelLayer.SalesOrder;

public interface IFDBSalesOrder {
	//create new sales order
	public void createSalesOrder(SalesOrder salesOrder) throws SQLException;
	//find sales order
	public SalesOrder findSalesOrder(int saleID) throws SQLException;
	//returns bigger than biggest saleID number
	public int getMaxSaleID();
	//return biggest saleID number
	public int getLatestSaleID();
	//update sales order invoice number
	public void updateSalesOrderInvoice(SalesOrder salesOrder)throws SQLException, Exception;
	//update sales order after cofirming sales order
	public void confirmSalesOrder(SalesOrder salesOrder) throws SQLException, Exception;
}